import 'package:enterprise_v6_app/app/components/organize_people_tree/organize_people_tree_view.dart';
import 'package:enterprise_v6_app/app/core/core.dart';
import 'package:enterprise_v6_app/app/core/utils/interface.dart';
import 'package:enterprise_v6_app/app/data/entities/application/emergency/communicate_entity.dart';
import 'package:enterprise_v6_app/app/data/entities/application/emergency/communication_personnel_entity.dart';

/// 属地通讯
class CommunicateTerritorialPage extends StatelessWidget {
  const CommunicateTerritorialPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.symmetric(horizontal: 14.w, vertical: 16.w),
      child: OrganizePeopleTreePage<CommunicateEntity, CommunicationPersonnelEntity>(
        queryParameters: const {'type': 2},
        nodeParameterName: 'communicationId',
        organizeInterface: Interface.getCommunicateTree,
        peopleInterface: Interface.getCommunicationPersonnelList,
      ),
    );
  }
}
